# 设计一个类 （类比生活中：设计一张表）
# 方法是类中的函数
# self 关键字是成员方法定义时，必须写的
class Student:
    name = None
    # gender = None
    # nationality = None
    # native_place = None
    # age = None

    def say_hi(self):
        print(f"大家好，我是{self.name}")


    def say_hi2(self, msg):
        print(f"大家好，我是：{self.name},{msg}")


# 创建一个对象 (类比生活中：打印一张表)
stu_1 = Student()
# 对象属性进行赋值 （类比生活中：填写表单）
stu_1.name = "林俊杰"
stu_1.say_hi()
stu_1.say_hi2("不错呀")

stu_2 = Student()
stu_2.name = "zhou"
stu_2.say_hi()

# stu_1.gender = "男"
# stu_1.nationality = "中国"
# stu_1.native_place = "山东省"
# stu_1.age = 31
# # 获取对象中记录的信息
# print(stu_1.name)
# print(stu_1.gender)
# print(stu_1.nationality)
# print(stu_1.native_place)
# print(stu_1.age)


